package pool.properties;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * 
 */
public class MyProperties extends Properties {

	private static final long serialVersionUID = 1L;

	public MyProperties() {
		super();
	}

	public MyProperties(String fileName) {
		try {
			BufferedReader br = new BufferedReader(new FileReader(fileName + ".properties"));
			super.load(br);

		} catch (FileNotFoundException ex) {
			System.err.println("Error: propertise file not found.");

		} catch (IOException ex) {
			System.err.println("Error: propertise I/O exception.");
		}
	}
}
